import 'dart:io';

import 'package:base_lib/utils/shared_preference_util.dart';
import 'package:dio/dio.dart';

class FileNetIntercept extends Interceptor {
  @override
  onRequest(RequestOptions options) {
    options.headers.addAll({
      "Platform": Platform.isAndroid ? "Android" : "iOS",
      "_PEACH_TOKEN_DOCTOR": SPUtil.getString("token", defValue: ""),
    });
    return super.onRequest(options);
  }
}
